package com.作业.Day3;

import java.util.Scanner;

public class Homework1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入直角三角形的行数:");
        int i = scanner.nextInt();
        for (int j = 0; j < i; j++) {
           int m= 2*j+1;
            for (int k = 0; k < m; k++) {
                System.out.print("*");
            }
            System.out.println();

        }

    }
}
